<div class="user-form">

<% form_for(@user) do |f| %>
  <%= f.error_messages %>
<table class="user-table" cellpadding="5" align="center">
<span class="user-header">查看用户资料</span>
<tr>
	<td><label for="username">用户名:</label></td>
    <td><%=h @user.username %></td>
</tr>
<tr>
	<td><label for="email">电子邮件:</label></td> 
    <td><%=h @user.email %></td>
</tr>
<tr>
	<td><label for="created_at">注册时间:</label></td> 
    <td><%=h @user.created_at %></td>
</tr>
</table>
<% end %>
</div>